//
//  YSProdReviewCell.m
//  Yueshi
//
//  Created by Northwan on 15/10/11.
//  Copyright © 2015年 悦食中国. All rights reserved.
//

#import "YSProdReviewCell.h"

@implementation YSProdReviewCell

+ (instancetype)cellWithTableView:(UITableView *)tableView
{
    static NSString *ID = @"YSProdReviewCell";
    YSProdReviewCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
    if (!cell) {
        cell = [[YSProdReviewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:ID];
    }
    return cell;
}

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        YSProdReviewItemView *reviewItemView =  [[YSProdReviewItemView alloc]init];
        self.reviewItemView = reviewItemView;
        [self addSubview:reviewItemView];
    }
    return self;
}

-(void)setReviewItemFrame:(YSProdReviewItemFrame *)reviewItemFrame{
    _reviewItemFrame = reviewItemFrame;
    _reviewItemView.reviewItemFrame = reviewItemFrame;
}


@end
